package com.bw.gmallbi.service.impl;

import com.bw.gmallbi.bean.TimeData;
import com.bw.gmallbi.bean.VisitorStats;
import com.bw.gmallbi.mapper.VisitorStatsMapper;
import com.bw.gmallbi.service.VisitorStatsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author zyj
 * @Date 2022/1/21 10:56
 */
@Service
public class VisitorStatsServiceImpl implements VisitorStatsService {

    @Resource
    private VisitorStatsMapper visitorStatsMapper;

    @Override
    public List<VisitorStats> getVisitorStats(Integer date) {
        return visitorStatsMapper.selectVisitorStats(date);
    }

    @Override
    public List<VisitorStats> getVisitorStatsByHr(Integer date) {
        return visitorStatsMapper.selectVisitorStatsByHr(date);
    }

    @Override
    public List<TimeData> getVisitorByH() {
        return visitorStatsMapper.selectVisitorByH();
    }

}
